<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/*
| -------------------------------------------------------------------------
| URI ROUTING
| -------------------------------------------------------------------------
| This file lets you re-map URI requests to specific controller functions.
|
| Typically there is a one-to-one relationship between a URL string
| and its corresponding controller class/method. The segments in a
| URL normally follow this pattern:
|
|	example.com/class/method/id/
|
| In some instances, however, you may want to remap this relationship
| so that a different class/function is called than the one
| corresponding to the URL.
|
| Please see the user guide for complete details:
|
|	http://codeigniter.com/user_guide/general/routing.html
|
| -------------------------------------------------------------------------
| RESERVED ROUTES
| -------------------------------------------------------------------------
|
| There area two reserved routes:
|
|	$route['default_controller'] = 'welcome';
|
| This route indicates which controller class should be loaded if the
| URI contains no data. In the above example, the "welcome" class
| would be loaded.
|
|	$route['404_override'] = 'errors/page_missing';
|
| This route will tell the Router what URI segments to use if those provided
| in the URL cannot be matched to a valid route.
|
*/

$route['default_controller'] = "welcome";
$route['404_override'] = '';

/**
 * config route movie link
 */
$route['audio'] = "redirect";
$route['forums'] = "redirect";

$route['video'] = "movie";
$route['video/play/(:num)'] = "movie/play/$1";
$route['video/view/(:num)'] = "movie/view/$1";
$route['video/view/(:num)/(:any)'] = "movie/view/$1";
$route['video/play/(:num)/(:any)'] = "movie/play/$1";

$route['video/urllist'] = "movie/urllist";
//$route['video/urllist/(:num)'] = "movie/urllist/$1";
//$route['video/urllist/(:num)/(:any)'] = "movie/urllist/$1";

$route['video/latestmovie/(:num)'] = "movie/latestmovie/$1";
$route['video/mostviews/(:num)'] = "movie/mostviews/$1";
$route['video/toprate/(:num)'] = "movie/toprate/$1";
$route['video/latestmovie/(:num)/(:any)'] = "movie/latestmovie/$1";
$route['video/mostviews/(:num)/(:any)'] = "movie/mostviews/$1";
$route['video/toprate/(:num)/(:any)'] = "movie/toprate/$1";

$route['video/search/(:num)/(:num)'] = "movie/search/$1/$2";
$route['video/search/(:num)/(:num)/(:any)'] = "movie/search/$1/$2";
$route['video/searchcategory/(:num)/(:num)'] = "movie/searchcategory/$1/$2";
$route['video/searchcategory/(:num)/(:num)/(:any)'] = "movie/searchcategory/$1/$2";
$route['video/searchactor/(:num)/(:num)'] = "movie/searchactor/$1/$2";
$route['video/searchactor/(:num)/(:num)/(:any)'] = "movie/searchactor/$1/$2";

$route['video/starrating/(:num)/(:num)'] = "movie/starrating/$1/$2";
$route['video/starrating/(:num)/(:num)/(:any)'] = "movie/starrating/$1/$2";

$route['comment/video/(:num)/addnew'] = 'comment/addnew/$1/video';






//route admincp
$route['admincp'] = 'admincp/manage';
$route['admincp/movie'] = 'admincp/amovie';
$route['admincp/movie/update/(:num)'] = 'admincp/ad_movie/update/$1';
$route['admincp/movie/update/(:num)/(:any)'] = 'admincp/ad_movie/update/$1';
$route['admincp/movie/doupdate/(:num)'] = 'admincp/ad_movie/doupdate/$1';
$route['admincp/movie/doupdate/(:num)/(:any)'] = 'admincp/ad_movie/doupdate/$1';
$route['admincp/movie/addnew'] = 'admincp/ad_movie/addnew';
$route['admincp/movie/doaddnew'] = 'admincp/ad_movie/doadnew';
$route['admincp/movie/choice'] = 'admincp/ad_movie/choicelist';
$route['admincp/movie/choice/addnew'] = 'admincp/ad_movie/addnewchoice';
$route['admincp/movie/choice/delete'] = 'admincp/ad_movie/deletechoice';
$route['admincp/movie/actor'] = 'admincp/ad_movie_actor';
//episode
$route['admincp/movie/episode'] = 'admincp/ad_movie_episode';
$route['admincp/movie/episode/addnew/(:num)'] = 'admincp/ad_movie_episode/addnew/$1';
$route['admincp/movie/episode/addnew/(:num)/(:any)'] = 'admincp/ad_movie_episode/addnew/$1';
$route['admincp/movie/episode/doaddnew'] = 'admincp/ad_movie_episode/doaddnew';
//--episode update
$route['admincp/movie/episode/update/(:num)'] = 'admincp/ad_movie_episode/update/$1';
$route['admincp/movie/episode/update/(:num)/(:any)'] = 'admincp/ad_movie_episode/update/$1';
$route['admincp/movie/episode/doupdate'] = 'admincp/ad_movie_episode/doupdate';
$route['admincp/movie/episode/doupdate/(:num)'] = 'admincp/ad_movie_episode/doupdate/$1';
//--episode home
$route['admincp/movie/episode/home/(:num)'] = 'admincp/ad_movie_episode/home/$1';
$route['admincp/movie/search'] = 'admincp/ad_movie/search';

//smile
$route['admincp/smile'] = 'admincp/ad_smile';
$route['admincp/smile/addnew'] = 'admincp/ad_smile/addnew';
$route['admincp/smile/update/(:num)'] = 'admincp/ad_smile/update/$1';

/* End of file routes.php */
/* Location: ./application/config/routes.php */